package com.rjt.common.util;

import javax.servlet.http.HttpSession;

import com.rjt.user.model.UserModel;

public class UserSession {
	public static boolean isAdmin(HttpSession session) {
		UserModel userSession=(UserModel) session.getAttribute("user");
		if(userSession!=null && userSession.getType()==2) {
			return true;
		}
		return false;
	}
}
